package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.BaseCategory3;
import com.atguigu.tingshu.model.album.BaseCategoryView;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BaseCategory3Mapper extends BaseMapper<BaseCategory3> {

    /**
     * 根据三级分类id查询分类数据
     * @author Petrichor
     * @date 2023/12/26 20:46
     * @param c3Id Category3Id 专辑三级分类id
     * @return BaseCategoryView 分类视图 一二三级分类的id和名称
     **/
    BaseCategoryView findCategoryByC3Id(Long c3Id);
}
